sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
core
/
androidx.core.os
/
[main]HandlerCompat
Handler
Compat
class
HandlerCompat
(
source
)
Helper for accessing features in
Handler
.
Members
Functions
create
Async
Link copied to clipboard
@
NonNull
open
fun
createAsync
(
@
NonNull
looper
:
Looper
)
:
Handler
@
NonNull
open
fun
createAsync
(
@
NonNull
looper
:
Looper
,
@
NonNull
callback
:
Handler.Callback
)
:
Handler
Create a new Handler whose posted messages and runnables are not subject to synchronization barriers such as display vsync.
has
Callbacks
Link copied to clipboard
open
fun
hasCallbacks
(
@
NonNull
handler
:
Handler
,
@
NonNull
r
:
Runnable
)
:
Boolean
Checks if there are any pending posts of messages with callback
r
in the message queue.
post
Delayed
Link copied to clipboard
open
fun
postDelayed
(
@
NonNull
handler
:
Handler
,
@
NonNull
r
:
Runnable
,
@
Nullable
token
:
Any
,
delayMillis
:
Long
)
:
Boolean
Causes the Runnable r to be added to the message queue, to be run after the specified amount of time elapses.